package com.jv.spring.importaware;

import com.jv.spring.importaware.scan.AwareUser;
import com.jv.spring.importresource.ImportResourceSpringAppConfig;
import com.jv.spring.importresource.scan.User;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ImportAwareMain {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext();
		ac.register(ImportAwareConfig.class);
		ac.refresh();
		AwareUser user = (AwareUser)ac.getBean("awareUser");
		System.out.println(user.getName());
	}
}
